import requests
import jsonpath

print("---------登录------------")
url = "http://novel.hctestedu.com/user/login"
data = {
    "username":"15574113907",
    "password":"123456"
}
r = requests.post(url=url,data=data)
token = jsonpath.jsonpath(r.json(), '$..token')[0]
print("token:",token)
print("------------上传头像------------")